//
// Created by 21577 on 2025/3/6.
//
#include<stdio.h>
#include<string.h>

int main(){
    char ch[1001];
    scanf("%s",ch);
    int mount=strlen(ch);
    int num;
    char character;
    for(int i=0;i<mount;i+=2){
        num=(int)ch[i]-(int)'0';
        character=ch[i+1];
        for(int k=0;k<num;k++){
            printf("%c",character);
        }
    }
    return 0;
}